<template>
  <div class="sonb">
    我是sonb
  </div>
</template>
<script>
export default {
  mounted() {
    this.$bus.$on('atob', (str) => {
      console.log('接收 到:', str)
    })
  },
  beforeDestroy() {
    this.$bus.$off('atob')
  }
}
</script>
<style>
.sonb{
    width: 300px;
    height: 300px;
    border: 5px solid #ccc;
}
</style>
